import request from '/@/utils/request'
import {prefix} from '/@/api/ws'


export function getTreeList(data: object) {
    return request({
        url: prefix + '/wNav/getList',
        method: 'post',
        data
    })
}


export function remove(id) {
    return request({
        url: prefix + '/wNav/remove/'+ id,
        method: 'get'
    })
}


export function updateStatus(data: object) {
    return request({
        url: prefix + '/wNav/updateStatus',
        method: 'post',
        data
    })
}


export function getTempInfoByEnterpriseId() {
    return request({
        url: prefix + '/wNav/getTempInfoByEnterpriseId',
        method: 'get'
    })
}

// 创建
export function create(data: object) {
    return request({
        url: prefix + '/wNav/create',
        method: 'post',
        data
    })
}

// 编辑
export function update(data: object) {
    return request({
        url: prefix + '/wNav/update',
        method: 'post',
        data
    })
}



export function getTempPage(tempId) {
    return request({
        url: prefix + '/wNav/getTempPage?tempId='+tempId,
        method: 'get'
    })
}